package com.huitu.whht.base.core.api.geo.intx.service.imp;

import com.huitu.whht.api.core.common.annotations.SzyCoreApiDao;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiService;
import com.huitu.whht.base.core.api.geo.intx.dao.IGeoIntCoreDao;
import com.huitu.whht.base.core.api.geo.intx.entities.GeoIntQo;
import com.huitu.whht.base.core.api.geo.intx.service.IGeoIntCoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@SzyCoreApiService
public class GeoIntCoreServiceImpl implements IGeoIntCoreService {
    @Autowired
    @SzyCoreApiDao
    private IGeoIntCoreDao geoIntCoreDao;
    /**
     * 根据主键查询
     *
     * @param intCd 地表水取水口代码
     * @return 查询结果Map
     */
    @Override
    public Map<String, Object> selectByPrimaryKey(String intCd) {
        return geoIntCoreDao.selectByPrimaryKey(intCd);
    }
    /**
     * 根据条件查询
     *
     * @param filter 查询条件
     * @return 查询结果List
     */
    @Override
    public List<Map<String, Object>> selectList(GeoIntQo filter) {
        return geoIntCoreDao.selectList(filter);
    }
}
